//
//  ListeningViewController.m
//  BabyMusic
//
//  Created by Tayoji on 15-6-17.
//  Copyright (c) 2015年 Tayoji. All rights reserved.
//

#import "ListeningViewController.h"
#import "BadyTabBarViewController.h"
@interface ListeningViewController ()

@end

@implementation ListeningViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titleLabel.text=self.model.title;
    if (self.model.speaker.length) {
        self.zhuLabel.text=self.model.speaker;
    }else{
        self.zhuLabel.text=@"佚名";
    }
    self.authorLable.text=self.model.authorPenname;
  
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)viewWillAppear:(BOOL)animated{
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed: @"botton_03"] forBarMetrics:UIBarMetricsDefault];
    
    BadyTabBarViewController * tabbr=(BadyTabBarViewController *)self.navigationController.tabBarController;
    tabbr.imageView.alpha=0;
    //self.navigationController.navigationBar.hidden=YES;

}
-(void)viewWillDisappear:(BOOL)animated{
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed: @"navicagationBar"] forBarMetrics:UIBarMetricsDefault];
    BadyTabBarViewController * tabbr=(BadyTabBarViewController *)self.navigationController.tabBarController;
    tabbr.imageView.alpha=1.0;


}


- (IBAction)butClick:(UIButton *)sender {
}
@end
